import { ApiProperty } from '@nestjs/swagger';

export class GetOrganizationTreeListAdminResDto {
  @ApiProperty({ description: '组织编号' })
  readonly id: number;

  @ApiProperty({ description: '组织名称' })
  readonly name: string;

  @ApiProperty({ description: '组织等级' })
  readonly level: number;

  @ApiProperty({ description: '组织描述' })
  readonly description: string;

  @ApiProperty({ description: '子组织列表', type: GetOrganizationTreeListAdminResDto, isArray: true })
  readonly children: GetOrganizationTreeListAdminResDto[];
}
